package com.seo.async;

import java.io.IOException;
import java.nio.channels.SocketChannel;

public interface AsyncSocketListener {
	public void init(AsyncSocket asyncSocket);
	public Object onAccept(SocketChannel socketChannel) throws IOException;
	public void onRead(SocketChannel socketChannel, Object context) throws IOException;
	public void onWrite(SocketChannel socketChannel, Object context) throws IOException;
	public void onReadTimeout(SocketChannel socketChannel, Object context);
	public void onWriteTimeout(SocketChannel socketChannel, Object context);
	public void onError(SocketChannel socketChannel, Object context);
}
